package com.dalin.platform.loa.condition;

import com.dalin.common.pager.Condition;
/*****************************************************************************
 * @content: 类信息                                                   *
 * @author : 那建林                                                                                                                                 *
 * @crtDate: 2010-06-07                                                     *
 * @modDate: 2010-06-07                                                     *
 * @version: 1.00                                                           *
 ****************************************************************************/
public class LoaRoleCondition extends Condition{
    private Long projectId; // PROJECT_ID,16,0
    private String roleName; // ROLE_NAME,256,0
    private String roleDescription; // ROLE_DESCRIPTION,512,0

    private Long userId; // 查看此用户的授权情况
    
    public LoaRoleCondition prepareParams() {
        setBaseQueryStr("from LoaRoleEntity h");
        setParam("h.projectId", "=", projectId);
        setParam("h.roleName", "like", "%" + roleName + "%");
        setParam("h.roleDescription", "like", "%" + roleDescription + "%");
        return this;
    }
    

	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	
	public Long getProjectId() {
		return projectId;
	}

	public void setProjectId(Long projectId) {
		this.projectId = projectId;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleDescription() {
		return roleDescription;
	}

	public void setRoleDescription(String roleDescription) {
		this.roleDescription = roleDescription;
	}
}
